<html xmlns:th="http://www.thymeleaf.org">
    <th:block th:fragment="goods_list">
    
<div class="box">
 <div class="box_1">
  <ul class="goods_list">
  <span></span>
  <form method="GET" class="sort" name="listform">
    <li> ：</li>
    <li> <a href="javascript:;" onClick="javascript:display_mode('list')">
    <img style="top:5px;" src="/static/images/display_mode_list<!-- {if $pager.display == 'list'} -->_act<!-- {/if} -->.gif" th:attr="alt=${lang.display.list}" ></a>
    </li>
    <li> <a href="javascript:;" onClick="javascript:display_mode('grid')">
    <img style="top:5px;" src="/static/images/display_mode_grid<!-- {if $pager.display == 'grid'} -->_act<!-- {/if} -->.gif" th:attr="alt=${lang.display.grid}"></a>
    </li>
    <li>  <a href="javascript:;" onClick="javascript:display_mode('text')">
    <img style="top:5px;" src="/static/images/display_mode_text<!-- {if $pager.display == 'text'} -->_act<!-- {/if} -->.gif" th:attr="alt=${lang.display.text}"></a>&nbsp;&nbsp;
    </li>
  
    <li>  <a href=".html?category=&display=&brand=&price_min=&price_max=&filter_attr=&page=&sort=goods_id&order=<!-- {if $pager.sort == 'goods_id' && $pager.order == 'DESC'} -->ASC<!-- {else} -->DESC<!-- {/if} -->#goods_list">
    <img src="/static/images/goods_id_<!-- {if $pager.sort == 'goods_id'} --><!-- {else} -->default<!-- {/if} -->.gif" th:attr="alt=${lang.sort.goods_id}"></a>
    </li>
    <li>  <a href=".html?category=&display=&brand=&price_min=&price_max=&filter_attr=&page=&sort=shop_price&order=<!-- {if $pager.sort == 'shop_price' && $pager.order == 'ASC'} -->DESC<!-- {else} -->ASC<!-- {/if} -->#goods_list">
    <img src="/static/images/shop_price_<!-- {if $pager.sort == 'shop_price'} --><!-- {else} -->default<!-- {/if} -->.gif" th:attr="alt=${lang.sort.shop_price}"></a>
    </li>
    <li>  <a href=".html?category=&display=&brand=&price_min=&price_max=&filter_attr=&page=&sort=last_update&order=<!-- {if $pager.sort == 'last_update' && $pager.order == 'DESC'} -->ASC<!-- {else} -->DESC<!-- {/if} -->#goods_list">
    <img src="/static/images/last_update_<!-- {if $pager.sort == 'last_update'} --><!-- {else} -->default<!-- {/if} -->.gif" th:attr="alt=${lang.sort.last_update}"></a>
    </li>

  <input type="hidden" name="category" value="" />
  <input type="hidden" name="display" value="" id="display" />
  <input type="hidden" name="brand" value="" />
  <input type="hidden" name="price_min" value="" />
  <input type="hidden" name="price_max" value="" />
  <input type="hidden" name="filter_attr" value="" />
  <input type="hidden" name="page" value="" />
  <input type="hidden" name="sort" value="" />
  <input type="hidden" name="order" value="" />
  </form>
  </ul>

    <!-- {if $category > 0} -->
  <form name="compareForm" action="compare.php" method="post" onSubmit="return compareGoods(this);">
    <!-- {/if} -->
    <!-- {if $pager.display == 'list'} -->
    <div class="goodsList">
    <!--{foreach name=goods_list from=$goods_list item=goods}-->
    <ul class="clearfix bgcolor"<!--{if $smarty.foreach.goods_list.index mod 2 eq 0}-->id=""<!--{else}-->id="bgcolor"<!--{/if}-->>
    <li class="thumb"><a th:href="${goods.url}"><img th:src="${goods.goods_thumb}" th:attr="alt=${goods.goods_name}" /></a></li>
    <li class="goodsName">
    <div class="div_name">
    <a th:href="${goods.url}" class="f6">
        <!-- {if $goods.goods_style_name} -->
        <br />
        <!-- {else} -->
        <br />
        <!-- {/if} -->
      </a>
     <!-- {if $goods.goods_brief} -->
    
    <!-- {/if} -->
     </div>
     <div>
     <a href="javascript:addToCart()" ><img src="/static/images/goumai.gif"></a>
    <a href="javascript:collect();"><img src="/static/images/shoucang.gif"></a>
    
    </div>
    </li>

    <li class="action">
      <!-- {if $show_marketprice} -->
    <font class="market" style="padding-right:10px;"></font> <br/>
    <!-- {/if} -->
    <!--{if $goods.promote_price neq "" } -->
    <font class="shop"></font> 
    <!--{else}-->
    <font class="shop"></font> 
    <!--{/if}-->
    </li>
    </ul>
    <!--{/foreach}-->
    </div>
    <!-- {elseif $pager.display == 'grid'} -->
    <div class="clearfix goodsBox" style="border:none;">
    <!--{foreach from=$goods_list item=goods}-->
    <!-- {if $goods.goods_id} -->
     <div class="goodsItem"  >
           <a th:href="${goods.url}"><img th:src="${goods.goods_thumb}" th:attr="alt=${goods.goods_name}" class="goodsimg" /></a><br />
           <p><a th:href="${goods.url}" th:attr="title=${goods.name}"></a></p>
           <p>
            <!-- {if $show_marketprice} -->
                        ：<font class="market_s"></font><br />
                        <!-- {/if} -->
                        <!--{if $goods.promote_price neq "" } -->
                        <font class="shop_s"></font><br />
                        <!--{else}-->
                        ：<font class="shop_s"></font><br />
                        <!--{/if}-->
                        </p>
			 
        </div>
    <!--{/if}-->
    <!--{/foreach}-->
    </div>
    <!-- {elseif $pager.display == 'text'} -->
    <div class="goodsList">
    <!--{foreach from=$goods_list item=goods}-->
     <ul class="clearfix bgcolor"<!--{if $smarty.foreach.goods_list.index mod 2 eq 0}-->id=""<!--{else}-->id="bgcolor"<!--{/if}-->>
    <li style="margin-right:15px;">
    <a href="javascript:;" id="compareLink" onClick="Compare.add(,'','')"
 class="f6"></a>
    </li>
    <li class="goodsName">
    <div class="div_name">
    <a th:href="${goods.url}" class="f6 f5">
        <!-- {if $goods.goods_style_name} -->
        <br />
        <!-- {else} -->
        <br />
        <!-- {/if} -->
      </a>
     
     <!-- {if $goods.goods_brief} -->
    <br />
    <!-- {/if} --> 
    </div>
     <a href="javascript:collect();" class="bnt_blue">加入收藏</a>
    <a href="javascript:addToCart()" class="bnt_blue">立即购买</a>
    </li>
    <li>
   
    </li>
    <li class="action">
     <!-- {if $show_marketprice} -->
    <font class="market"></font><br />
    <!-- {/if} -->
    <!--{if $goods.promote_price neq "" } -->
    <font class="shop"></font><br />
    <!--{else}-->
    <font class="shop"></font><br />
    <!--{/if}-->
    </li>
    </ul>
    <!--{/foreach}-->
    </div>
    <!-- {/if} -->
  <!-- {if $category > 0} -->
  </form>
  <!-- {/if} -->

 </div>
</div>
<div class="blank5"></div>
<script type="Text/Javascript" language="JavaScript">
<!--
{literal}
function selectPage(sel)
{
  sel.form.submit();
}
{/literal}
//-->
</script>
<script type="text/javascript">
window.onload = function()
{
  Compare.init();
  fixpng();
}
{foreach from=$lang.compare_js item=item key=key}
{if $key neq 'button_compare'}
var  = "";
{else}
var button_compare = '';
{/if}
{/foreach}
var compare_no_goods = "";
var btn_buy = "";
var is_cancel = "";
var select_spe = "";
</script>
    </th:block>
</html>